package com.wzxl.service.exception;

/**
 * @Package com.wzxl.service.exception
 * @Description: TODO ( 自定义异常处理 )
 * @Author rxbyes
 * @Date 2017 上午8:47
 * @Version V1.0
 */
public class ServiceException extends RuntimeException {

    private static final long serialVersionUID = 569577232948574067L;

    public ErrorCode errorCode;

    public String errorMessage;

    public ServiceException(String message, ErrorCode errorCode) {
        super(message);
        this.errorCode = errorCode;
    }

    public ServiceException(String message, String errorMessage, ErrorCode errorCode) {
        super(message);
        this.errorMessage = errorMessage;
        this.errorCode = errorCode;
    }

}
